home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Download Now 8
/
Download Now V8.iso
/
Program
/
InternetTools
/
ApacheWebServer1.3.6
/
apache_1_3_6_win32.exe
/
_SETUP.1
/
passwd.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1997-08-31
|
282 b
|
17 lines
#include <stdio.h>
#include "passwd.h"
/* Very tacky implementation */
struct passwd *getpwnam(const char *szUser)
{
static struct passwd pw;
if(strlen(szUser) > _MAX_PATH-10)
return NULL;
sprintf(pw.pw_dir,"c:/users/%s",szUser);
return &pw;
}